* {
    padding: 0;
    margin: 0;
}
body{
    background-color: #F2F3F5;

}

.icon button {
    position: relative;
    display: inline-block;
    border: none;
    width: 100%;
    height: 100%;
    background-color: skyblue;
    color: #fff;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg,
    #03a9f4,
    #f441a5,
    #ffeb3b,
    #03a9f4);
    background-size: 400%;
    border-radius: 10px;

}

@keyframes animate {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}

.icon button {
    animation: animate 8s linear infinite;
}

/* //添加光影 */
.icon button:before {
    content: '';
    position: absolute;
    left: -5px;
    top: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;

    background: linear-gradient(90deg,
    #03a9f4,
    #f441a5,
    #ffeb3b,
    #03a9f4);
    background-size: 400%;
    border-radius: 10px;

    opacity: 0;
    transition: all 1s;
}

.icon button:hover:before {
    filter: blur(20px);
    opacity: 1;
}
